package l1j.server.server.model;

import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;

import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.serverpackets.S_SkillSound;
import l1j.server.server.serverpackets.S_SystemMessage;

public class PapuBlessing extends TimerTask {
 private static Logger _log = Logger.getLogger(PapuBlessing.class.getName());

 private final L1PcInstance _pc;

 public PapuBlessing(L1PcInstance pc) {
  _pc = pc;
 }

 @Override
 public void run() {
  try {
   if (_pc.isDead()) {
    return;
   }
   Papuregen();
  } catch (Throwable e) {
   _log.log(Level.WARNING, e.getLocalizedMessage(), e);
  }
 }

 public void Papuregen() {  
  _pc.sendPackets(new S_SkillSound(_pc.getId(), 2245)); 
  _pc.broadcastPacket(new S_SkillSound(_pc.getId(), 2245));
 } 
}